export function stateNumber(oneItem) {
    let state = '';
    let imgClass = '';
    if (oneItem == 0) {
        state = '待审批';
        imgClass = 'state-ing';
    } else if (oneItem == 1) {
        //待家长审核
        state = '待家长审核';
        imgClass = 'state-ing';
    } else if (oneItem == 2) {
        state = '待工作室老师审核';
        imgClass = 'state-ing';
    } else if (oneItem == 3) {
        state = '家长已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 4) {
        state = '家长已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 5) {
        state = '家长已通过，班主任审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 6) {
        state = '工作室老师已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 10) {
        state = '工作室老师已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 11) {
        state = '工作室老师已通过班主任审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 15) {
        state = '班主任已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 16) {
        state = '班主任已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 17) {
        state = '班主任已通过系主任审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 21) {
        state = '系部审核人已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 22) {
        state = '系部审核人已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 23) {
        state = '系主任已通过，学生处审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 27) {
        state = '学生处审核人已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 28) {
        state = '学生处审核人已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 29) {
        state = '家长已通过，宿管审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 30) {
        state = '待宿管审批';
        imgClass = 'state-ing';
    } else if (oneItem == 31) {
        state = '宿管已同意';
        imgClass = 'state-pass';
    } else if (oneItem == 32) {
        state = '宿管已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 33) {
        state = '成人留宿自动同意';
        imgClass = 'state-pass';
    }
    return state;
}
export function stateNumber2(oneItem) {
    let state = '';
    let imgClass = '';
    if (oneItem == 0) {
        state = '待审批';
        imgClass = 'state-ing';
    } else if (oneItem == 1) {
        //待家长审核
        state = '待审批';
        imgClass = 'state-ing';
    } else if (oneItem == 2) {
        state = '待审批';
        imgClass = 'state-ing';
    } else if (oneItem == 3) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 4) {
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 5) {
        state = '审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 6) {
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 10) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 11) {
        state = '审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 15) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 16) {
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 17) {
        state = '审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 21) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 22) {
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 23) {
        state = '审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 27) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 28) {
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 29) {
        //家长已通过，宿管审核中
        state = '审核中';
        imgClass = 'state-ing';
    } else if (oneItem == 30) {
        state = '待审批';
        imgClass = 'state-ing';
    } else if (oneItem == 31) {
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 32) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 33) {
        // 自动通过
        state = '已通过';
        imgClass = 'state-pass';
    }
    return state;
}
export function stateNumber3(oneItem) {
    let state = '';
    let imgClass = '';
    if (oneItem == 0) {
        state = '待审批';
        imgClass = 'state-ing';
    } else if (oneItem == 23) {
        //待家长审核
        state = '已通过';
        imgClass = 'state-pass';
    } else if (oneItem == 24) {
        state = '已拒绝';
        imgClass = 'state-fail';
    } else if (oneItem == 34) {
        state = '未处理';
        imgClass = 'state-fail';
    } else if (oneItem == 33) {
        state = '已完成';
        imgClass = 'state-pass';
    }
    return state;
}
export function getStates(roleNums) {
    if (roleNums.includes(6)) {
        return '&states=15&states=16&states=17';
    } else if (roleNums.includes(13)) {
        return '&states=15&states=16&states=17&states=21&states=22&states=23&states=27&states=28';
    } else if (roleNums.includes(19)) {
        return 'states=21&states=22&states=23&states=27&states=28';
    } else if (roleNums.includes(24)) {
        return 'states=27&states=28';
    }
}
export function applyState(oneItem) {
    if (oneItem == 0) {
        return '待审批';
    } else if (oneItem == 6) {
        return '已通过';
    } else if (oneItem == 7) {
        return '已拒绝';
    }
}
